package com.yj.springbootmybatis.mapper;

import com.yj.springbootmybatis.pojo.vo.ItemCommentsVO;
import com.yj.springbootmybatis.pojo.vo.ItemSearchVO;
import com.yj.springbootmybatis.pojo.vo.ShopcartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItemsCommentsCustomMapper {
    /**
     * 根据商品的id 和 评价的等价查询商品评论
     * @param params
     * @return
     */
    List<ItemCommentsVO>queryItemComments(@Param("params") Map<String,Object> params);

    List<ItemSearchVO> queryItemByLikeItemName(@Param("params") Map<String,Object> params);
    List<ItemSearchVO> queryItemByCatId(@Param("params") Map<String,Object> params);
    List<ShopcartVO> queryShopCartBySpecIds(@Param("list")List<String> specIds);

}
